import Vue from 'vue';
import { healthApis, lvtongApis, loginApis } from '@/api';

Object.defineProperties(Vue.prototype, {
  $$healthApis: {
    get: () => healthApis,
  },
  $$lvtongApis: {
    get: () => lvtongApis,
  },
  $$loginApis: {
    get: () => loginApis,
  },
});

const plugin = (cxt, inject) => {
  cxt.$healthApis = healthApis;
  cxt.$lvtongApis = lvtongApis;
};

export default plugin;
